package com.ctg.behavior.client.impala.core;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;

import com.ctg.behavior.client.impala.config.CtImpalaConfig;
import com.ctg.behavior.client.impala.factory.CtImpalaPool;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public abstract class AbstractCtImpalaClient {

	@Autowired
	protected CtImpalaPool ctImpalaPool;
	
	@Autowired
	protected CtImpalaConfig hbaseConfig;

	@PostConstruct
	public void init() throws Exception {
		log.info("init ctImpalaPool pool start...");
		if (!ctImpalaPool.initPool()) {
			return;
		}
		log.info("init ctImpalaPool pool end.");
	}

}
